package com.xctech.ipb.module.user.domain.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xctech.ipb.module.user.domain.entity.UserDo;
import com.xctech.ipb.module.user.infrastructure.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public UserDo getUserInfo() {

        LambdaQueryWrapper<UserDo> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(UserDo::getId, 1);
        return userMapper.selectOne(queryWrapper);
    }
}
